package com.ls.task.bean;

import java.util.Date;
import java.util.List;
import java.util.Set;

import org.quartz.JobKey;
import org.quartz.TriggerKey;

import com.fasterxml.jackson.annotation.JsonFormat;

public class QuertzStatus{
	private boolean autoStartup;
	private boolean running;
	private String instanceId;
	private Date startupDt;
	private String name;
	private boolean inStandbyMode;
	private boolean started;
	private boolean shutdown; 
	private int executedJobTimes;
	private Set<JobStatus> jobs;
	public boolean isAutoStartup() {
		return autoStartup;
	}
	public void setAutoStartup(boolean autoStartup) {
		this.autoStartup = autoStartup;
	}
	public boolean isRunning() {
		return running;
	}
	public void setRunning(boolean running) {
		this.running = running;
	}
	public String getInstanceId() {
		return instanceId;
	}
	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}
	public Date getStartupDt() {
		return startupDt;
	}
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	public void setStartupDt(Date startupDt) {
		this.startupDt = startupDt;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isInStandbyMode() {
		return inStandbyMode;
	}
	public void setInStandbyMode(boolean inStandbyMode) {
		this.inStandbyMode = inStandbyMode;
	}
	public boolean isStarted() {
		return started;
	}
	public void setStarted(boolean started) {
		this.started = started;
	}
	public boolean isShutdown() {
		return shutdown;
	}
	public void setShutdown(boolean shutdown) {
		this.shutdown = shutdown;
	}
	public int getExecutedJobTimes() {
		return executedJobTimes;
	}
	public void setExecutedJobTimes(int executedJobTimes) {
		this.executedJobTimes = executedJobTimes;
	}
	public Set<JobStatus> getJobs() {
		return jobs;
	}
	public void setJobs(Set<JobStatus> jobs) {
		this.jobs = jobs;
	}
 
}